package com.weimob.cloud.api.exception;

import lombok.Getter;

@Getter
public class WeimobApiException extends RuntimeException {

    private String code;
    private String message;

    public WeimobApiException() {
    }

    public WeimobApiException(String message) {
        super(message);
        this.message = message;
    }

    public WeimobApiException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public WeimobApiException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
